package ai.example.springai.controller;

import ai.example.springai.service.PptService;
import lombok.AllArgsConstructor;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/api")
@AllArgsConstructor
public class JsonFormatDataController {

    PptService pptService;

    @RequestMapping("/json_demo")
    public String createPpt(@RequestParam(name = "message") String message) {
        return pptService.createPpt(message);
    }

}
